<?php
namespace app\index\validate;

use think\Validate;

class Faq extends Validate
{
    protected $rule = [
        'content'   => 'require',
        'tel'       => 'require',
        'faq_type'  => 'require'
    ];

    protected $message = [
        'content.require'   => '留言内容不能为空',
        'tel.require'       => '联系方式不能为空',
        'faq_type.require'  => '意见反馈类型不能为空'
    ];

    protected $scene = [
        'add'  => ['content','tel','faq_type']
    ];
}